package com.shrcl.engineerprocess.web.client.app

import com.google.inject.Inject
import edu.fudan.langlab.uidl.domain.app.client.ModuleInitializer
import edu.fudan.langlab.uidl.domain.app.client.WorkbenchManager

class ModuleInitializerImpl implements ModuleInitializer {
	@Inject
	private UIWorkbenchPartRegister workbenchPartRegister;
	@Inject WorkbenchManager workbenchManager
	@Inject TaskInitializer taskRegister
	
//	@Inject
//	private DeliverModualInitalizer deliverModualInitalizer;
//	@Inject EventBus eventbus
	override initializeModule() {
		workbenchPartRegister.initialize();
		taskRegister.initialize();
//		deliverModualInitalizer.registerWorkbenchCommands(workbenchManager);
//		defineStartupScreen();
	}
	
//	@Inject Provider<RouterPresenter> industrialparkManagementPresenter
	 
//	def defineStartupScreen(){
//		eventbus.addHandler(ApplicationInitializedEvent::__type__)[app|
//			val router = industrialparkManagementPresenter.get
//			eventbus.fireEvent(new ShowPresenterEvent(router))
//			router.route
//		]		
//		
//	}
	
}
